package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.FoodMeals;
import org.apache.ibatis.annotations.Mapper;

/**
 * 菜品Mapper接口
 *
 * @author xianpei
 * @date 2024-06-13
 */
@Mapper
public interface FoodMealsMapper
{
    /**
     * 查询菜品
     *
     * @param mealsId 菜品主键
     * @return 菜品
     */
    public FoodMeals selectFoodMealsByMealsId(Long mealsId);

    /**
     * 查询菜品列表
     *
     * @param foodMeals 菜品
     * @return 菜品集合
     */
    public List<FoodMeals> selectFoodMealsList(FoodMeals foodMeals);

    /**
     * 新增菜品
     *
     * @param foodMeals 菜品
     * @return 结果
     */
    public int insertFoodMeals(FoodMeals foodMeals);

    /**
     * 修改菜品
     *
     * @param foodMeals 菜品
     * @return 结果
     */
    public int updateFoodMeals(FoodMeals foodMeals);

    /**
     * 删除菜品
     *
     * @param mealsId 菜品主键
     * @return 结果
     */
    public int deleteFoodMealsByMealsId(Long mealsId);

    /**
     * 批量删除菜品
     *
     * @param mealsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFoodMealsByMealsIds(Long[] mealsIds);
}
